package com.frp.lib.config;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by hujianjun on 11/22 0022.
 */
public class ClientCommon {
    private String configFile = "./frpc.ini";
    private String serverAddr = "0.0.0.0";
    private int serverPort = 7000;
    private String httpProxy = "";
    private String logFile = "console";
    private String logWay = "console";
    private String logLevel = "info";
    private int logMaxDays = 3;
    private String privilegeToken = "";
    private String adminAddr = "127.0.0.1";
    private int adminPort = 0;
    private String adminUser = "";
    private String adminPwd = "";
    private int poolCount = 1;
    private boolean tcpMux = true;
    private String user = "";
    private boolean loginFailExit = true;
    private Map<String, Object> start = new HashMap<String, Object>();
    private String protocol = "tcp";
    private int heartBeatInterval = 30;
    private int headBeatTimeout = 90;

    @Override
    public String toString() {
        return "ClientCommon{" +
                "configFile='" + configFile + '\'' +
                ", serverAddr='" + serverAddr + '\'' +
                ", serverPort=" + serverPort +
                ", httpProxy='" + httpProxy + '\'' +
                ", logFile='" + logFile + '\'' +
                ", logWay='" + logWay + '\'' +
                ", logLevel='" + logLevel + '\'' +
                ", logMaxDays=" + logMaxDays +
                ", privilegeToken='" + privilegeToken + '\'' +
                ", adminAddr='" + adminAddr + '\'' +
                ", adminPort=" + adminPort +
                ", adminUser='" + adminUser + '\'' +
                ", adminPwd='" + adminPwd + '\'' +
                ", poolCount=" + poolCount +
                ", tcpMux=" + tcpMux +
                ", user='" + user + '\'' +
                ", loginFailExit=" + loginFailExit +
                ", start=" + start +
                ", protocol='" + protocol + '\'' +
                ", heartBeatInterval=" + heartBeatInterval +
                ", headBeatTimeout=" + headBeatTimeout +
                '}';
    }

    public String getConfigFile() {
        return configFile;
    }

    public void setConfigFile(String configFile) {
        this.configFile = configFile;
    }

    public String getServerAddr() {
        return serverAddr;
    }

    public void setServerAddr(String serverAddr) {
        this.serverAddr = serverAddr;
    }

    public int getServerPort() {
        return serverPort;
    }

    public void setServerPort(int serverPort) {
        this.serverPort = serverPort;
    }

    public String getHttpProxy() {
        return httpProxy;
    }

    public void setHttpProxy(String httpProxy) {
        this.httpProxy = httpProxy;
    }

    public String getLogFile() {
        return logFile;
    }

    public void setLogFile(String logFile) {
        this.logFile = logFile;
    }

    public String getLogWay() {
        return logWay;
    }

    public void setLogWay(String logWay) {
        this.logWay = logWay;
    }

    public String getLogLevel() {
        return logLevel;
    }

    public void setLogLevel(String logLevel) {
        this.logLevel = logLevel;
    }

    public int getLogMaxDays() {
        return logMaxDays;
    }

    public void setLogMaxDays(int logMaxDays) {
        this.logMaxDays = logMaxDays;
    }

    public String getPrivilegeToken() {
        return privilegeToken;
    }

    public void setPrivilegeToken(String privilegeToken) {
        this.privilegeToken = privilegeToken;
    }

    public String getAdminAddr() {
        return adminAddr;
    }

    public void setAdminAddr(String adminAddr) {
        this.adminAddr = adminAddr;
    }

    public int getAdminPort() {
        return adminPort;
    }

    public void setAdminPort(int adminPort) {
        this.adminPort = adminPort;
    }

    public String getAdminUser() {
        return adminUser;
    }

    public void setAdminUser(String adminUser) {
        this.adminUser = adminUser;
    }

    public String getAdminPwd() {
        return adminPwd;
    }

    public void setAdminPwd(String adminPwd) {
        this.adminPwd = adminPwd;
    }

    public int getPoolCount() {
        return poolCount;
    }

    public void setPoolCount(int poolCount) {
        this.poolCount = poolCount;
    }

    public boolean isTcpMux() {
        return tcpMux;
    }

    public void setTcpMux(boolean tcpMux) {
        this.tcpMux = tcpMux;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public boolean isLoginFailExit() {
        return loginFailExit;
    }

    public void setLoginFailExit(boolean loginFailExit) {
        this.loginFailExit = loginFailExit;
    }

    public Map<String, Object> getStart() {
        return start;
    }

    public void setStart(Map<String, Object> start) {
        this.start = start;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public int getHeartBeatInterval() {
        return heartBeatInterval;
    }

    public void setHeartBeatInterval(int heartBeatInterval) {
        this.heartBeatInterval = heartBeatInterval;
    }

    public int getHeadBeatTimeout() {
        return headBeatTimeout;
    }

    public void setHeartBeatTimeout(int headBeatTimeout) {
        this.headBeatTimeout = headBeatTimeout;
    }


}
